window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((e=>"Phoenix-upper-funnel"===e.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-upper-funnel",VERSION:"release-phoenix-upper-funnel-1.1.34939.1371721126-39f68b2d-4-g4c3fc7698",LASTCOMMITDATETIME:"2024-07-16T18:00:25-06:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-upper-funnel * chunkName: component-clientlibs/productCategories.v1/productCategories * VERSION: release-phoenix-upper-funnel-1.1.34939.1371721126-39f68b2d-4-g4c3fc7698 * BRANCH: release/fix-upper-funnel0717 * COMMITHASH: 4c3fc7698bddb05cca402d984d9c7e93c1830225 * LASTCOMMITDATETIME: 2024-07-16T18:00:25-06:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){"use strict";var e,t={4886:function(e,t,n){n.d(t,{f1:function(){return o}});const o=e=>{const t=e.pathname;if(t.match(/\/cellphone\/|\/cellphones\/|\/cell-phones\/|\/cell-phone\/|\/cell-phones$/gi))return"CELLPHONES";if(t.match(/\/tablet\/|\/tablets\/|\/tablets$/gi))return"TABLETS";if(t.match(/\/smart-watch\/|\/smartwatches\/|\/smart-watches\/|\/smart-watches$/gi))return"SMARTWATCHES";if(t.match(/\/hotspot-iot-connected-device\/|\/hotspots-iot-connected-devices\/|\/hotspot-iot-connected-devices\/|\/hotspots-iot-connected-devices$|\/hotspots_iot_connected_devices$/gi))return"HOTSPOTS_IOT_CONNECTED_DEVICES";return t.match(/\/accessory\/|\/accessories\/|\/accessories$/gi)?"ACCESSORIES":null}}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e=o(4886),window.Alpine?.data("productCategories",(()=>({categoryName:"",filterValue:void 0,init(){this.events();const t=(0,e.f1)(new URL(window.location.href));t&&(this.categoryName=t)},events(){window.phoenix.bus.subscribe("PRODUCT_CATEGORIES","FETCH_FAMILY_CATEGORY_SUCCESS",this.renderText.bind(this)),window.phoenix.bus.subscribe("PRODUCT_FILTER","FILTER_HEADER",this.setFilterHeader.bind(this))},renderText(e){this.categoryName=e?.payload?.categoryName},setFilterHeader(e){this.filterValue=e?.payload?`${e?.payload} `:void 0}})))}();